package com.heima.model.wemedia.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * wm新闻材料实体类
 *
 * @author DiXiaoNie
 * @date 2022/12/21
 * @since 2022/12/21 17:39
 */
@Data
@TableName("wm_news_material")
public class WmNewsMaterial {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 材料Id
     */
    @TableField("material_id")
    private Integer materialId;

    /**
     * 文章id
     */
    @TableField("news_id")
    private Integer newsId;


    /**
     * 素材类型
     * 0 图片
     * 1 视频
     */
    @TableField("type")
    private Short type;


    /**
     * 引用排序
     */
    @TableField("ord")
    private Short ord;
}
